<?php
/**
 * Created by PhpStorm.
 * User: fengzi
 * Date: 2019/5/29
 * Time: 17:18
 */

namespace app\vehicle\model;
use think\Model;

class Resume extends Model
{
    public function ResumeCate(){
        return $this->hasOne('ResumeCate', 'id', 'cate_id')->bind([
            'cate_name'=>'name'
        ]);
    }

    public function getThumbAttr($value){
        return $value?config('database.img_url').$value:'';
    }

//    public function getContentAttr($value){
//        return htmlspecialchars_decode($value);
//    }
}